package com.example.springboot.mapper;

import com.example.springboot.controller.request.BasePageRequest;
import com.example.springboot.entity.Hire;
import com.example.springboot.mapper.po.HireCountPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:HireMapper
 * Package:com.example.springboot.mapper
 * Description:
 *
 * @Author: Gao
 * @Create: 2023/2/7 - 16:29
 */
@Mapper
public interface HireMapper {

    List<Hire> list();

    List<Hire> listByCondition(BasePageRequest basePageRequest);

    void save(Hire hire);

    Hire getById(int id);

    void updateById(Hire hire);

    void deleteById(int id);

    Hire getByHireNo(String hireNo);

    List<HireCountPO> getCountByTimeRange(@Param("timeRange") String timeRange, @Param("type") int type);
}
